import { PageRoutesTypeEnum } from 'pub-bbx-global/pageType/dist/enum/PageRoutesEnum';
import { openAccurateTab } from '@src/util/platform';

// 跳转邮件会话详情
export function jumpMailManagementDetail(options = {}) {
  let fromId = window.frameElement.getAttribute('id');
  const { id, serialnumber = '' } = options
  openAccurateTab(
    {
      type: PageRoutesTypeEnum.PageMailManagementDetail,
      key: id,
      params: `id=${id}`,
      fromId,
      titleKey: serialnumber,
    }
  );
}